<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册界面</title>
    <link rel="stylesheet" href="css/index.css">
    <script type="text/javascript" src="js/jquery.js"></script>
</head>
<body>
<script>
    $(document).ready(function () {
        var whei = $(window).width()
        $("html").css({ fontSize: whei / 24 });
        $(window).resize(function () {
            var whei = $(window).width();
            $("html").css({ fontSize: whei / 24 })
        });
    });
    // function login(){
    //     window.location.href="1123zh13\\\\index.html";
    // }
</script>
<div class="main">

    <div class="header">
        <div class="header-center fl">
            <div class="header-title">
                成都轨道交通大数据服务平台
            </div>
            <div class="header-img"></div>
        </div>
        <div class="header-bottom fl"></div>

    </div>

    <div class="content">
        <div class="content-left">
            <!--<img src="images/d.png" alt="">-->
        </div>
        <div class="content-right">
            <div class="right-infp">
                <div class="right-infp-name">
                    <input id="email" type="email" name="email" placeholder="邮箱/手机号" maxlength="12" required="" value="" autocomplete="off">
                </div>
<!--                <div class="right-infp-name">-->
<!--                    <input id="username" type="text" name="username" placeholder="账号" maxlength="12" required="" value="" autocomplete="off">-->
<!--                </div>-->
                <div class="right-infp-name">
                    <input id="password1" type="password" name="userpasswd" placeholder="输入密码" autocomplete="off">
                </div>
                <div class="right-infp-name">
                    <input id="password2" type="password" name="userpasswd" placeholder="确认密码" autocomplete="off">
                </div>

                <!--                <div class="right-infp-btn">-->
                <!--                    <button class="btn" type="submit" onclick="login()">登录</button>-->
                <!--                </div>-->
                <div class="right-infp-btn">
                    <button class="btn" type="submit" onclick="login()">注册</button>
                </div>
                <div>
                    <h2 align="center" style="font-style: revert">已有账号？&nbsp;立即<a href="login.html">&nbsp;登录</a></h2>
                </div>

                <!--                <div class="right-infp-btn">-->
                <!--                    <button class="btn" type="submit" onclick="login()">注册</button>-->
                <!--                </div>-->
            </div>
        </div>
    </div>

</div>
<script>
    function login(){
        var name=document.getElementById('username').value;
        var pass=document.getElementById('password').value;
        var cname="admin";
        var cpass="123456";
        if(name==cname && pass==cpass ){
            alert("登录成功!")
            window.location.href="index\\\\index.html";
        }else{
            alert("用户名或密码错误!")
        }
    }
    jigsaw.init(document.getElementById('captcha'), function () {
        flag=true;
        document.getElementById('msg').innerHTML = '登录成功！'
    })
</script>
</body>
</html>